<?php
class DigUi_View_Helper_DigUiFlash extends Zend_View_Helper_Abstract
{
    public $pathToJqueryFlash = '/jquery/jquery.flash.js';

    public function digUiFlash($id, $src, $width, $height) {
        $this->view->jQuery()->addJavascriptFile($this->pathToJqueryFlash);
        $jquery = sprintf('$("#%s").flash({ src: "%s", width: %s, height: %s});',
                $id, $src, $width, $height
        );
        $this->view->jQuery()->addOnLoad($jquery);
        return sprintf('<div id="%s"></div>', $id);
    }
}
?>
